<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<title>示例9</title> 
<script> 
    // 剩余运算符解构 
    let [x, ...y] = [1, 2, 3]; 
    console.log(x); // 1 
    console.log(y); // [2, 3] 
    </script> 
 </head> 
 <body></body> 
 </html> 